
public class SpecialTiles {
	
	private static String[] name = { "Go", "Just Visiting", "Free Parking", "Go to Jail" };
	private static String[] URL = { "images/Misc/Go.png", "images/Misc/Just Visiting.png", "images/Misc/Free Parking.png",
									"images/Misc/Go to Jail.png" };
	
	public static String getName(int x) {
		
		return name[x];
	}
	
	public static String getImageURL(int x) {
		
		return URL[x];
	}
	
	public static Player Go(Player a) {
		
		a.setCash(a.getCash()+200);
		
		return a;
	}
	
	public static Player GoToJail(Player a) {
		
		a.setStop(50);
		a.presetNextLoc(10);			
		a.setJail(true);
		a.setJailCounter(4);
		Location.setRelocate(true);
		Board.setIgnoreGo(true);
		
		return a;
	}
}
